package chapter2;

/* 
 * Just like javascript, Groovy has native language support for regular expressions defined
 * by the slashy syntax //
 */
assert '12345' =~ /\d+/
assert 'xxxxx' == '12345'.replaceAll(/\d/, 'x')
